import {Injectable} from '@angular/core';
import {Observable, Subject} from 'rxjs';

@Injectable()
export class ListenService {
    private banner = new Subject<any>();
    constructor() {
    }
    setBanner(index, max) {
        this.banner.next({
            index: index,
            max: max
        });
    }
    getBanner(): Observable<any> {
        return this.banner.asObservable();
    }
}
